//
//  CImageGridCell.h
//  ImageGridCell
//
//  Created by 为为 on 14-7-1.
//  Copyright (c) 2014年 为为. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CImageGridCell : UITableViewCell

@property (nonatomic, strong) NSArray* imageArray;
@property (nonatomic, assign) BOOL deletable;
@property (nonatomic, strong) NSString* title;
@property (nonatomic, copy) void(^imagePressedBlock)(CImageGridCell* cell, UIImage* image, NSUInteger index);
@property (nonatomic, copy) void(^imageDeletedBlock)(CImageGridCell* cell, UIImage* image, NSUInteger index);
@property (nonatomic, copy) void(^downloadPressedBlock)(CImageGridCell* cell);

- (void)setNewImage:(UIImage*)image forIndex:(int)index;
- (int)heightFromImageCount:(int)count;

@end
